package com.example.demo.threadDemo.aThreadWithdrawMoney;

/**
 * @Description DrawThread
 * @Author songchuanlong
 * @Date 2025-04-14
 */
public class DrawThread extends Thread{
    private Account acc;
    public DrawThread(Account acc,String name){
        super(name);
        this.acc=acc;
    }
    @Override
    public void run() {
        //取钱（小明、小红）
        acc.drawMoney(10000);
    }
}
